package com.samecity.mvp.model.Http;

import com.samecity.mvp.bean.HttpResult;
import com.samecity.mvp.bean.RegisterLoginData;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/1/11 0011.
 */

public interface ApiHttp {

    @FormUrlEncoded
    @POST("Public/")
    Observable<String> getCode(
            @Field("service") String service,
            @Field("Ulogin") String userPhone);

    @FormUrlEncoded
    @POST("Public/")
    Observable<HttpResult<RegisterLoginData>> userLogin(
            @Field("service") String service,
            @Field("Ulogin") String userPhone
            , @Field("Upasswd") String userPassword);
}
